package io.demo_7_lambda表达式;

public class Test1 {
    public static void main(String[] args) {
        Runnable r=new Runnable() {
            @Override
            public void run() {
                System.out.println("这是匿名内部类");
            }
        };

        r=()->{
            System.out.println("这是lambda表达式");
        };


    }
}
